package com.gxa.saas.portal.service.impl;

import com.gxa.saas.portal.entity.vo.wylvo.CreateShopVo;
import com.gxa.saas.portal.entity.vo.wylvo.GoodsVo;
import com.gxa.saas.portal.entity.vo.wylvo.ShareVo;
import com.gxa.saas.portal.entity.vo.wylvo.StoreDataVo;
import com.gxa.saas.portal.mapper.WStoreMapper;
import com.gxa.saas.portal.service.WStoreService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class WStoreServiceImpl implements WStoreService {
    @Resource
    private WStoreMapper wStoreMapper;


    @Override
    public List<GoodsVo> storeData(Integer id) {
        List<GoodsVo> list = wStoreMapper.storeData(id);
        return list;
    }

    @Override
    public StoreDataVo selectPer(Integer id) {
        StoreDataVo per = wStoreMapper.selectPer(id);
        return per;
    }

    @Override
    public void updateShareP(ShareVo sv) {
         wStoreMapper.updateShareP(sv);
    }

    @Override
    public void updateGoods(GoodsVo goods) {
        wStoreMapper.updateGoods(goods);
    }

    @Override
    public void delectGoods(Integer id) {
        wStoreMapper.delectGoods(id);
    }

    @Override
    public void updatePic(Integer id, String pic) {
        wStoreMapper.updatePic(id, pic);
    }

    @Override
    public String selectByShopId(String shopId) {
        String shopId1 = wStoreMapper.selectByShopId(shopId);
        return shopId1;
    }

    @Override
    public void createShop(CreateShopVo createShopVo) {
        wStoreMapper.createShop(createShopVo);
    }

    @Override
    public void insertAccount(String asloginId) {
        wStoreMapper.insertAccount(asloginId);
    }
}
